home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
- global fsrect
-
- on mouseUp me
- rawpos = the mouseH - sprite(spriteNum).left + 3
- realpos = min(5, max(rawpos / 8, 1))
- sprite(spriteNum + 1).locH = sprite(spriteNum).left + (realpos * 9) - 4
- case realpos of
- 1:
- fsrect = rect(-800, 0, -160, 480)
- 2:
- fsrect = rect(-640, 0, 0, 480)
- 3:
- if (the desktopRectList).count > 1 then
- fsrect = (the desktopRectList)[2]
- end if
- 4:
- fsrect = rect(0, 0, 640, 480)
- 5:
- fsrect = rect(800, 0, 1440, 480)
- end case
- end
-